<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

    <head>
        <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        
        <title>Elements Test Page</title>
        
        <script type="text/javascript">
            function initFileManager(id) {
                var listener = new function() {
                    this.onEvent = function() {
                       // put here the code that need to be signaled on a directory change event
                       window.alert("FileManager["+id+"].getCurrentDirectoryString() = ("+FileManager[id].getCurrentDirectoryString()+")");
                   }
                }
                FileManager[id].addJSListener(listener);
            }
        </script>
        
        <script language="javascript" type="text/javascript">
            EfGwtInitParams = {};
            EfGwtInitParams["com.enginframe.gwt.elements.Elements"] = {};
            EfGwtInitParams["com.enginframe.gwt.elements.Elements"]["ROOT_IDS"] = [];
            EfGwtInitParams["com.enginframe.gwt.elements.Elements"]["ROOT_IDS"].push("EF_GWT_EXT_filemanager");
            EfGwtInitParams["com.enginframe.gwt.elements.Elements"]["ROOT_IDS"].push("EF_GWT_EXT_directorybar");
         </script>
         
        <script xmlns="http://www.w3.org/1999/xhtml" src="../com.enginframe.gwt.elements.Elements.nocache.js" language="javascript" type="text/javascript">
        <!-- // -->
        </script>
    </head>

    <body>
        
        <input type="button" value="Refresh" onClick="javascript:FileManager['filemanager'].refresh();" />
        <input type="button" value="deleteSelectedFiles" onClick="javascript:FileManager['filemanager'].refresh();" />
        <input type="button" value="rename" onClick="javascript:FileManager['filemanager'].rename();" />
        <input type="button" value="createFolder" onClick="javascript:FileManager['filemanager'].createFolder();" />
        <input type="button" value="upload" onClick="javascript:FileManager['filemanager'].upload();" />
        <input type="button" value="copySelectedFiles" onClick="javascript:FileManager['filemanager'].copySelectedFiles();" />
        
        <div id="EF_GWT_EXT_directorybar">
            <input type="hidden" id="EF_GWT_EXT_directorybar_TYPE" value="com.enginframe.gwt.widgets.client.filemanager.DirectoryBar"/>

            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_directorybar_ROOT_ICON">icon.png</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_directorybar_CHANGE_PATH_TXT">Change path</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_directorybar_CLEAR_EDIT_TXT">Clear edit</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_directorybar_STARTING_DIRECTORY">/</div>
            
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_directorybar_DIR_CHANGE_LISTENERS">filemanager</div>
        </div>
        

        <div id="EF_GWT_EXT_filemanager">
            <input type="hidden" id="EF_GWT_EXT_filemanager_TYPE" value="com.enginframe.gwt.widgets.client.filemanager.FileManager"/>

            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_BROWSE_SDF">fake/rfb.xml</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_COPY_SDF">fake/copy.xml</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_MOVE_SDF">fake/move.xml</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_DELETE_SDF">fake/delete.xml</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_RENAME_SDF">fake/rename.xml</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_CREATE_FOLDER_SDF">fake/rename.xml</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_UPLOAD_URL">fake/upload.xml</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_DOWNLOAD_URL">fake/download</div>

            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_BROWSE_SERVICE_URI">//services/browse</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_COPY_SERVICE_URI">//services/copy</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_MOVE_SERVICE_URI">//services/move.rename</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_DELETE_SERVICE_URI">//services/delete</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_RENAME_SERVICE_URI">//services/rename</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_CREATE_FOLDER_SERVICE_URI">//services/create.folder</div>
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_SPOOLER_URI">spooler:///opt/nice/enginframe/spoolers/efadmin/tmp51325.ef</div>
        
            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_STARTING_DIRECTORY">/</div>

            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_DIR_CHANGE_LISTENERS">directorybar</div>

            <div style="visibility: hidden; display: none;" id="EF_GWT_EXT_filemanager_DIR_CHANGE_INIT_FUNCTION_NAME">initFileManager</div>
        </div>
        
    </body>

</html>
